logout

abstract fun logout(onResult: (Throwable?) -> Unit)

Log out the currently authenticated user. This signs the user out of Firebase and invalidates their session.

Parameters

onResult

The callback function to handle the result of the logout. It receives an optional Throwable indicating the error, if any.